package com.wsc.springbootmultidevdemo.single;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

/**
 * 内部类测试
 */
@Component
@Data
public class Car {

    private String name;
    public static String size;
    public Integer price;
    public  Wheel wheel = null;

    public int stringTest(String... strs){
        int i = 0;
        for (String str : strs) {
            i++;
        }
        return i;
    }

    class Wheel{
        public void say(){
            System.out.println(name);
        }
    }

}
